﻿namespace CSharpPro._0922_2;

public class Travel
{
    private const double OriginalPrice = 8800;

    public static double CalculatePrice(int month, string transport)
    {
        if (5 <= month && month <= 10)
        {
            return transport == "航班" ? OriginalPrice * 0.9 : OriginalPrice * 0.75;
        }
        else
        {
            return transport == "航班" ? OriginalPrice * 0.6 : OriginalPrice * 0.3;
        }
    }
}